from collections import Counter
import string

def count_letters(s):
	# 使用Counter统计每个字符出现的次数，并且只保留字母字符
	letter_counts = Counter(c for c in s if c in string.ascii_letters)
	return dict(letter_counts)

S = input("请输入一个字符串：")

# 调用函数并打印结果
result = count_letters(S)
print(result)
